package domain.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import domain.web.model.Store;
import domain.web.service.StoreService;

@Controller
@RequestMapping("data/store")
public class StoreController {

	@Autowired
	private StoreService storeService;
	
	@RequestMapping(value = "/getall", method = RequestMethod.POST)
	@ResponseBody
	public List<Store> getAllStores() {
		return storeService.getAll();
	}
}
